<form class="form-inline" id="formProduct" method="post" action="/product/update">
    <input name="id" value="${product.id}" type="hidden">
    <div class="form-group">
        <label for="exampleInputName2">商品编号</label>
        <input type="text" class="form-control" value="${product.code}" name="code">
    </div>
    <br>
    <div class="form-group">
        <label for="exampleInputEmail2">商品名称</label>
        <input type="text" class="form-control" value="${product.name}" name="name">
    </div>
    <br>
    <div class="form-group">
        <label for="exampleInputEmail2">品&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;牌</label>
        <select class="form-control" name="brand.id">
        <#list brandList as data>
            <option value="${data.id}"
                <#if data.chineseName == (product.brand).chineseName>
                    selected="selected"
                </#if>
            >${(data.chineseName)!""}</option>
        </#list>
        </select>
    </div>
    </div>
    <br>
    <div class="form-group">
        <label for="exampleInputEmail2">分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;类</label>
        <select class="form-control" name="catalog.id">
        <#list catalogList as data>
            <option value="${data.id}"
                <#if data.name == product.catalog.name>
                    selected="selected"
                </#if>
            >${(data.name)!""}</option>
        </#list>
        </select>
    </div>
    <br>
    <div class="form-group">
        <label for="exampleInputEmail2">市场价格</label>
        <input type="number" class="form-control" value="${product.marketPrice}" name="marketPrice">
    </div>
    <br>
    <div class="form-group">
        <label for="exampleInputEmail2">基础价格</label>
        <input type="number" class="form-control" value="${product.basePrice}" name="basePrice">
    </div>
</form>
